import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import "./separators"

ApplicationWindow {
    width: 800
    height: 600
    visible: true
    title: "分隔线示例"

    ScrollView {
        anchors.fill: parent
        anchors.margins: 20

        GridLayout {
            width: parent.width
            columns: 2
            columnSpacing: 30
            rowSpacing: 20

            Label {
                text: "1. Rectangle 分隔线"
                font.bold: true
                Layout.columnSpan: 1
            }
            RectangleSeparator {
                Layout.fillWidth: true
            }

            Label {
                text: "2. 菜单分隔线"
                font.bold: true
                Layout.columnSpan: 1
            }
            MenuSeparatorExample {
                Layout.fillWidth: true
            }

            Label {
                text: "3. 工具栏分隔线"
                font.bold: true
                Layout.columnSpan: 1
            }
            ToolSeparatorExample {
                Layout.fillWidth: true
            }

            Label {
                text: "4. 自定义分隔线"
                font.bold: true
                Layout.columnSpan: 1
            }
            CustomSeparator {
                Layout.fillWidth: true
            }
        }
    }
}
